package linkwechat.controller.system;

import linkwechat.pojo.ReturnData;
import linkwechat.pojo.ReturnEnum;
import linkwechat.pojo.SysPost;
import linkwechat.sysservice.SysPostService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("sysPort")
@RestController
public class SysPostController {

    @Resource
    SysPostService sysPortService;

    //    岗位查询
    @RequestMapping("selectPortList")
    public ReturnData deptSelect(){
        List<SysPost> list = sysPortService.list();
        return ReturnData.setResp(ReturnEnum.QUERY_SUCCEED,list);
    }



}
